package net.lahuobao.finance.entity.accountsetting;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.CascadeType;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.jeecgframework.web.system.pojo.base.TSDepart;


/**   
 * @Title: Entity
 * @Description: 账户支付比例表
 * @author zhangdaihao
 * @date 2016-08-25 10:16:49
 * @version V1.0   
 *
 */
@Entity
@Table(name = "account_payment_ratio_setting", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class AccountPaymentRatioSettingEntity implements java.io.Serializable {
	/**主键ID*/
	private Integer id;
	/**设置账户类型 1--承运商;2--物流服务商*/
	private Integer aboutType;
	
	private TSDepart depart;
//	/**关联的组织机构Id*/
//	private java.lang.String aboutId;
	/**油卡账户支付比例*/
	private BigDecimal oilAccountRatio;
	/**ETC账户支付比例*/
	private BigDecimal etcAccountRatio;
	/**商城账户支付比例*/
	private BigDecimal shopAccountRatio;
	/**个体户账户支付比例*/
	private BigDecimal selfemployeeAccountRation;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  主键ID
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public Integer getId(){
		return this.id;
	}

	

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  主键ID
	 */
	public void setId(Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  设置账户类型 1--承运商;2--物流服务商
	 */
	@Column(name ="ABOUT_TYPE",nullable=true,precision=5,scale=0)
	public Integer getAboutType(){
		return this.aboutType;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  设置账户类型 1--承运商;2--物流服务商
	 */
	public void setAboutType(Integer aboutType){
		this.aboutType = aboutType;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  关联的组织机构Id
	 */
/*	@Column(name ="ABOUT_ID",nullable=true,length=32)
	public java.lang.String getAboutId(){
		return this.aboutId;
	}

	*//**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  关联的组织机构Id
	 *//*
	public void setAboutId(java.lang.String aboutId){
		this.aboutId = aboutId;
	}*/
	
	
	@OneToOne
	@JoinColumn(name = "about_id")
	public TSDepart getTSPDepart() {
		return this.depart;
	}

	public void setTSPDepart(TSDepart TSPDepart) {
		this.depart = TSPDepart;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  油卡账户支付比例
	 */
	@Column(name ="OIL_ACCOUNT_RATIO",nullable=true,precision=6,scale=3)
	public BigDecimal getOilAccountRatio(){
		return this.oilAccountRatio;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  油卡账户支付比例
	 */
	public void setOilAccountRatio(BigDecimal oilAccountRatio){
		this.oilAccountRatio = oilAccountRatio;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  ETC账户支付比例
	 */
	@Column(name ="ETC_ACCOUNT_RATIO",nullable=true,precision=6,scale=3)
	public BigDecimal getEtcAccountRatio(){
		return this.etcAccountRatio;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  ETC账户支付比例
	 */
	public void setEtcAccountRatio(BigDecimal etcAccountRatio){
		this.etcAccountRatio = etcAccountRatio;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  商城账户支付比例
	 */
	@Column(name ="SHOP_ACCOUNT_RATIO",nullable=true,precision=6,scale=3)
	public BigDecimal getShopAccountRatio(){
		return this.shopAccountRatio;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  商城账户支付比例
	 */
	public void setShopAccountRatio(BigDecimal shopAccountRatio){
		this.shopAccountRatio = shopAccountRatio;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  个体户账户支付比例
	 */
	@Column(name ="SELFEMPLOYEE_ACCOUNT_RATION",nullable=true,precision=6,scale=3)
	public BigDecimal getSelfemployeeAccountRation(){
		return this.selfemployeeAccountRation;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  个体户账户支付比例
	 */
	public void setSelfemployeeAccountRation(BigDecimal selfemployeeAccountRation){
		this.selfemployeeAccountRation = selfemployeeAccountRation;
	}
}
